﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Entity
{

    public class WMSBasicTypeOfGoods
    {
        /// <summary>货品类型id</summary>
        public int product_type_id { get; set; }
        /// <summary>上级分类</summary>
        public int parent_category_id { get; set; }
        /// <summary>货品类型编号</summary>
        public string product_type_code { get; set; }
        /// <summary>货品类型名称</summary>
        public string product_type_name { get; set; }
        /// <summary>排序</summary>
        public int? sorting { get; set; }
        /// <summary>备注</summary>
        public string note { get; set; }
        /// <summary>创建人</summary>
        public string create_by { get; set; }
        /// <summary>创建时间</summary>
        public DateTime create_time { get; set; }
        /// <summary>修改人</summary>
        public string update_by { get; set; }
        /// <summary>修改时间</summary>
        public DateTime? update_time { get; set; }
        /// <summary>是否删除</summary>
        public string is_delete { get; set; }
        /// <summary>启用停用</summary>
        public int status { get; set; }
        /// <summary>子类型集合（用于树形结构）</summary>
        public List<WMSBasicTypeOfGoods> Children { get; set; } = new List<WMSBasicTypeOfGoods>();
    }


    public class WMSBasicTypeOfGoodsEntity
    {
        /// <summary>货品类型id</summary>
        public int product_type_id { get; set; }
        /// <summary>上级分类</summary>
        public int parent_category_id { get; set; }
        /// <summary>货品类型编号</summary>
        public string product_type_code { get; set; }
        /// <summary>货品类型名称</summary>
        public string product_type_name { get; set; }
        /// <summary>排序</summary>
        public string sorting { get; set; }
        /// <summary>备注</summary>
        public string note { get; set; }
        /// <summary>创建人</summary>
        public DateTime create_by { get; set; }
        /// <summary>创建时间</summary>
        public string create_time { get; set; }
        /// <summary>修改人</summary>
        public string update_by { get; set; }
        /// <summary>修改时间</summary>
        public DateTime update_time { get; set; }
        /// <summary>是否删除</summary>
        public int is_delete { get; set; }
        public int status { get; set; }
    }


    public class AddWMSBasicTypeOfGoods
    {
        public int? product_type_id { get; set; }
        public string parent_category_id { get; set; }
        public string product_type_code { get; set; }
        public string product_type_name { get; set; }
        public int sorting { get; set; }
        public string note { get; set; }
        public string? create_by { get; set; } 
        public DateTime? create_time { get; set; } 
        public int? is_delete { get; set; }
        public string? update_by { get; set; }
        public DateTime? update_time { get; set; }
        public int? status { get; set; }
    }
}
